package com.turing.data.scripts.contract.transfer

import com.turing.data.vo.out.review.DependParamsVO
import com.turing.data.vo.out.review.TaskElementVO


/*
预警线
* */

class WarningLine_30193_10_transfer {

    static List< TaskElementVO.DrawResultVO > doConvert(List< TaskElementVO.DrawResultVO > resultVOs, DependParamsVO dependParams){

        if (resultVOs!=null && resultVOs.size()>0){
            for (int i = 0; i < resultVOs.size(); i++) {
                def childTaskSn = resultVOs.get(i).childTaskSn
                if(null == childTaskSn || childTaskSn == ""){
                    continue
                }
                String modelValue = resultVOs.get(i).getText()

                if (modelValue != null && modelValue != "") {

                    if (modelValue!=null && modelValue != "") {
                        if (modelValue.contains("预警") && modelValue.contains("线") || modelValue.contains("有") || modelValue.contains("设置")  ){
                            resultVOs.get(i).setBusinessValue("有")
                            resultVOs.get(i).setType(1)
                            continue
                        }
                    }

                }

                resultVOs.get(i).setBusinessValue("无")
                resultVOs.get(i).setType(1)
            }
        }

        return resultVOs
    }


}
